home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Stack crash when creating stati < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  6.8 KB  |  [TEXT/ttxt]

  1. Subject:     Stack crash when creating stationery
  2. Sent:        6/27/96 5:57 PM
  3. Received:    6/27/96 6:11 PM
  4. From:        The3Furies@aol.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. I am crashing when I try to create stationery from my part, and the debug
  9. message isn't helping a whole lot.  From the best I can tell, this crash
  10. is happening in or around the code fragment manager, and happens after the
  11. part has been created and destroyed by OD.  The stack seems to be blowing
  12. out.  If I shut down the Stationary Seed at the crash point, a non-stationery
  13. document with the proper name is left in the Stationery folder.
  14.  
  15. The truly bizzare thing is that it only happens if I instatiate an object
  16. that I just added.  It is a pretty simple object, and the constructor &
  17. destructor don't do much of anything (no allocation...).  At first, I
  18. was doing a 'new CMyObject' in the Initialize function of the part,
  19. then I moved it to the constructor of the Content, then I tried making
  20. the object auto-destruct and using FW_NEW.  Then I tried making it a
  21. class member of the content to avoid the new.  None of these helped.
  22.  
  23. The only other though I have is that this object will cause a lot of
  24. additional code to be linked into the part.
  25.  
  26. I have included the debug message and the stack dump at the crash point
  27. in hopes that someone may have seen this before and be able to give me
  28. a hint of how to track this problem down.  I'm guessing it has little
  29. to do with my actual new object, and is something deeper down.
  30.  
  31. Chris
  32.  
  33. Debugger mesage:
  34. -----------------
  35. gExceptionData->fStackTop @ PC =40A28B6C
  36.  
  37. (If I continue, i get gExceptionData->fStackBottom @ ...., then it alterates)
  38.  
  39. Stack Dump:
  40. -----------------
  41.  
  42. --at ADDR--Name-------------------Calls--------------- Frame-Addr--Size
  43. =40A28B6C                                           bytes in use =  $3F82
  44. =40A28B68 .debugstr               .Debugger               26547D0   40
  45. =02306A78 .FW_PrivDebugMessage    .debugstr               2654910   40
  46. =022A272C        c@022A272C              c@022BC880       2654950   40
  47. =0229CDD0        c@0229CDD0              c@022A26C4       2654AA0  150
  48. =0224D3E4        c@0224D3E4              c@022BE1A0       2654AF0  150
  49. =02258480        c@02258480              c@0224D3B8       2654B30   40
  50. =022580C8        c@022580C8              c@02258474       2654B70   40
  51. =000A9D20 proc74                  __ptrGlue               2654BB0   40
  52. =000A8894 proc64                  proc74                  2654C30   80
  53. =000A7C7C proc56                   -   -   -   -  -  -  - 2654C80   80
  54. =000A4C24 .FragRelease            proc56                  2654CE0   80
  55. =000B17A0 .CloseConnection        .FragRelease            2654D30   50
  56. =0243E51C        c@0243E51C              c@0243EA08       2654D80   50
  57. =02431A70        c@02431A70              c@0243E4AC       2654DD0   50
  58. =0243A5C0        c@0243A5C0              c@0243ED98       2654E10   50
  59. =0243AA58        c@0243AA58              c@0243A4F8       2654E50   40
  60. =0243D064        c@0243D064              c@0243ED98       2654E90   40
  61. =0243D190        c@0243D190              c@0243ED98       2654EE0   40
  62. =02512650        c@02512650              c@02536338       2654F30   40
  63. =024CF1BC        c@024CF1BC              c@02536338       26550B0   40
  64. =02439360        c@02439360              c@0243ED98       2655230   40
  65. =02430AB8        c@02430AB8        -   -   -   -  -  -  - 2655290   40
  66. =024390F8        c@024390F8              c@02430A80       2655350   40
  67. =02439210        c@02439210              c@02439098       2655390   40
  68. =0243D16C        c@0243D16C              c@024391D8       26553E0   50
  69. =02511BD0        c@02511BD0              c@02536338       2655430   50
  70. =0252DB24        c@0252DB24              c@02536338       2655840   50
  71. =0250F1EC        c@0250F1EC              c@02536338       26559C0   50
  72. =0252FA6C        c@0252FA6C              c@02536338       2655B40   50
  73. =0250C978        c@0250C978              c@02536338       2655CC0   50
  74. =0250F804        c@0250F804              c@02536338       2655E50   50
  75. =0244B45C        c@0244B45C              c@02536338       2655FD0   50
  76. =0244AE1C        c@0244AE1C              c@0244B408       2656020   50
  77. =0245BAC4        c@0245BAC4              c@0244ADEC       2656060   40
  78. =024A2E00        c@024A2E00              c@0245B824       2656220  1C0
  79. =0249C684        c@0249C684              c@024A2C68       2656B00  8E0
  80. =024A6F6C        c@024A6F6C              c@02534B98       2656ED0  8E0
  81. =0245650C        c@0245650C              c@02536338       2657190  8E0
  82. =024B2344        c@024B2344              c@02536338       2657310  8E0
  83. =024B264C        c@024B264C              c@02536338       2657720  8E0
  84. =024B10F0        c@024B10F0              c@02536338       26577A0  8E0
  85. =024B186C        c@024B186C              c@02536338       2657AB0  8E0
  86. =000B35E4  68k -> PPC_Switch       -   -   -   -  -  -  - 2657B00  8E0
  87. =0022C5D6        c@0022C5D6        -   -   -   -  -  -  - 2657B72
  88. =0022C610        c@0022C610              c@0022C520       2657BAC   28
  89. =0022CC22        c@0022CC22        -   -   -   -  -  -  - 2657BE6
  90. =0022A790        c@0022A790              c@0022B78E       2657C1E   62
  91. =0022CB08        c@0022CB08              c@0022CB6E       2657C4C   54
  92. =024A062A        c@024A062A       _qd_BMain9              2657C84
  93. =40A06FAC .AEProcessAppleEvent    .CallUniversalProc_GL_  2657E90
  94. =024B3504        c@024B3504              c@025353A8       2657ED0
  95. =0249D1C8        c@0249D1C8              c@02536338       2657F10
  96. =0249FDA0        c@0249FDA0              c@0249D0FC       2657F70   60
  97. =0249F46C        c@0249F46C              c@0249FC44       26580F0  180
  98. =024A09DC        c@024A09DC              c@0249F2A4       26583C0  2D0
  99. =0254DFDC        c@0254DFDC              c@0254E4B4       2658540  2D0
  100. =0254E04C        c@0254E04C              c@0254DFD0       2658580   40
  101. =000B35E4  68k -> PPC_Switch       -   -   -   -  -  -  - 26585C0   40
  102. =00041F72 'scod BFB1 011C'+04552   -   -   -   -  -  -  - 265862E
  103. =0026CCC4        c@0026CCC4       _GetProcessInformation  2658660
  104. =000FAA0E        c@000FAA0E       _GrafDevice             265869E
  105. =0026C486        c@0026C486              c@0026D07E       26586C2   D0
  106. =0016797C       rd@0016797C       _MixedModeMagic         2658706
  107. =0026BD0C        c@0026BD0C       _SetPort                265870A
  108. =0026BDB0        c@0026BDB0              c@0026BD04       2658726   14
  109. =0026BDB0        c@0026BDB0              c@0026BD04       265872E   14
  110. =0004C24A 'scod BFB1 011C'+0E82A  _InitApplication        2658732   22
  111.  
  112.  
  113. ========================================================================
  114. Chris Colapietro                               email: the3furies@aol.com
  115. President                     
  116. The 3 Furies Software, Inc.                        voice: (804) 698-6859
  117. ========================================================================
  118.